package org.linlinjava.litemall.admin.vo.marketing_manage;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.math.BigDecimal;
import java.util.List;

/**
 * @author wj
 * @date 2021/10/29 14:18
 */
public class AddRuleVo {

    private Integer id;

    @NotBlank(message = "规则名称不能为空")
    private String name;

    @NotNull(message = "规则类型不能为空")
    private Integer type;

    @NotNull(message = "规则方式不能为空")
    private Integer ruleMethod;

    @Min(value = 0,message = "金额不能小于0")
    private BigDecimal ruleValue;

    @Size(min = 1,message = "活动时间错误")
    private List<String> times;

    @NotNull(message = "适用商品类型不能为空")
    private Integer goodsType;

    @NotNull(message = "适用门店类型不能为空")
    private Integer storeType;

    private List<Integer> goodsList;

    private List<Integer> storeList;

    private Integer busiId;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getBusiId() {
        return busiId;
    }

    public void setBusiId(Integer busiId) {
        this.busiId = busiId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getRuleMethod() {
        return ruleMethod;
    }

    public void setRuleMethod(Integer ruleMethod) {
        this.ruleMethod = ruleMethod;
    }

    public BigDecimal getRuleValue() {
        return ruleValue;
    }

    public void setRuleValue(BigDecimal ruleValue) {
        this.ruleValue = ruleValue;
    }

    public List<String> getTimes() {
        return times;
    }

    public void setTimes(List<String> times) {
        this.times = times;
    }

    public Integer getGoodsType() {
        return goodsType;
    }

    public void setGoodsType(Integer goodsType) {
        this.goodsType = goodsType;
    }

    public Integer getStoreType() {
        return storeType;
    }

    public void setStoreType(Integer storeType) {
        this.storeType = storeType;
    }

    public List<Integer> getGoodsList() {
        return goodsList;
    }

    public void setGoodsList(List<Integer> goodsList) {
        this.goodsList = goodsList;
    }

    public List<Integer> getStoreList() {
        return storeList;
    }

    public void setStoreList(List<Integer> storeList) {
        this.storeList = storeList;
    }
}
